import { Sequelize } from "sequelize";
/**
 * https://www.sequelize.cn/
 */
// 'mysql://spen:821597cd-9ce1-11ef-9b83-00e0b4662e1a@192.168.10.1:3306/spen'
const sequelize = new Sequelize('spen','spen', '821597cd-9ce1-11ef-9b83-00e0b4662e1a', {
    host: '192.168.10.1',
    port: 3306,
    dialect: 'mysql',
    pool: {
        max: 10,
        min: 5,
        acquire: 30000,
        idle: 10000
    },
    dialectOptions: {
        connectTimeout: 1000 * 60 * 5
    }
});
export default sequelize;